package com.authority.framework.web.service;

import com.authority.framework.base.service.BaseService;
import com.authority.framework.web.domain.SysRoleEntity;

import java.util.List;

/**
 * @program: authority
 * @description: 角色 service 层
 * @author: Mr.Yan
 * @create: 2018-11-15 13:46
 **/
public interface SysRoleService extends BaseService<SysRoleEntity> {

	/**
	 * 查询用户的角色
	 * @param userId
	 * @return
	 */
	public List<SysRoleEntity>  findListByUserId(Integer userId);



	/**
	 * 删除角色以前的菜单
	 * @param roleId
	 * @return
	 */
	public Integer deleteRoleMenu(String roleId);

	/**
	 * 删除角色以前的部门权限
	 * @param roleId
	 * @return
	 */
	Integer deleteRoleDept(String roleId);
}
